What is how long can cooked pasta sit out?

Cooked pasta should not sit out at room temperature for more than two hours. This is because of the "danger zone" (40°F - 140°F or 4°C - 60°C) where harmful bacteria can grow rapidly.

After two hours at room temperature, cooked pasta should be refrigerated promptly. If the pasta is mixed with perishable ingredients like meat, cheese, or creamy sauces, the risk of bacterial growth is even higher, so extra caution is warranted. It's best to refrigerate these types of "pasta dishes" https://www.wikiwhat.page/kavramlar/pasta%20dishes even sooner.